home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 338_01 / code.h < prev    next >
Text File  |  1980-01-01  |  768b  |  27 lines

  1. /*
  2.  *      code structure definitions.
  3.  */
  4.  
  5. enum address_mode {
  6.         am_const, am_label, am_string, am_temp, am_auto,
  7.         am_defcon, am_deflab, am_defstr, am_deftemp, am_defauto,
  8.         am_none };
  9.  
  10. enum instruction {
  11.         i_move, i_add, i_sub, i_mul, i_div, i_mod, i_and, i_or,
  12.         i_xor, i_shl, i_shr, i_jmp, i_jeq, i_jne, i_jlt, i_jle,
  13.         i_jgt, i_jge, i_call, i_enter, i_ret, i_table, i_label };
  14.  
  15. union aval {
  16.         int             i;
  17.         char            *s;
  18.         };
  19.  
  20. struct inst {
  21.         struct inst     *fwd, *back;
  22.         int             opcode, size;
  23.         char            sm0, sm1, dm;
  24.         union aval      sv0, sv1, dv;
  25.         };
  26.  
  27.